package com.shop.service;

import java.util.List;

import com.shop.po.Shopcart;

public interface ShopcartService {
	//通过uid查询购物车列表
	public List<Shopcart> selCartByUid(int uid);
	
	//通过uid和pid查询商品是否在购物车里
	public Shopcart selCartByUidAndPid(int uid,int pid);
	
	public Shopcart selCartById(int id);
	
	//添加购物车信息 
	public void insertCart(Shopcart shopcart);
		
	//删除单个购物车商品
	public void deleteByPrimaryKey(int id);
		
	//清空购物车 
	public void deleteByUid(int uid);
	
	public void updateCount(int count,int id,double subtotle);
}
